package cn.com.headfree.tjfx.service.impl;

import cn.com.headfree.entity.TOrgDept;
import cn.com.headfree.tjfx.dao.IAnalysisDao;
import cn.com.headfree.tjfx.service.IAnalysisService;
import cn.com.headfree.tjfx.vo.zjrcVo;
import cn.com.headfree.tjfx.vo.zyzgqkVo;
import com.gta.edu.sdk.common.dto.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("analysisService")
public class AnalysisServiceImpl implements IAnalysisService {
    @Autowired
    IAnalysisDao analysisDao;

    @Override
    public List<HashMap> getChildOrgDeptByid(String id){
        return analysisDao.getChildOrgDeptByid(id);
    }

    @Override
    public TOrgDept getDeptsById(String id){
        return analysisDao.getDeptsById(id);
    }

    @Override
    public List<HashMap> getZjrcfbtListByOrgId(String parentOrgId){
        return analysisDao.getZjrcfbtListByOrgId(parentOrgId);
    }

    @Override
    public List<HashMap> getPreViewZjrcfbtListByOrgId(String parentOrgId){
        return analysisDao.getPreViewZjrcfbtListByOrgId(parentOrgId);
    }

    @Override
    public void findZjrcList(Page<zjrcVo> page, String parentOrgId, zjrcVo zjrc){
        analysisDao.findZjrcList(page,parentOrgId,zjrc);
    }

    @Override
    public List<zjrcVo> findZjrcList(String parentOrgId, zjrcVo zjrc){
        return analysisDao.findZjrcList(parentOrgId,zjrc);
    }

    @Override
    public List<HashMap> getZyzgqkListByOrgId(String parentOrgId){
        return analysisDao.getZyzgqkListByOrgId(parentOrgId);
    }

    @Override
    public List<HashMap> getPreViewZyzgqkListByOrgId(String parentOrgId){
        return analysisDao.getPreViewZyzgqkListByOrgId(parentOrgId);
    }

    @Override
    public void findZyzgqkList(Page<zyzgqkVo> page, String parentOrgId, zyzgqkVo zyzgqk){
        analysisDao.findZyzgqkList(page,parentOrgId,zyzgqk);
    }

    @Override
    public List<zyzgqkVo> findZyzgqkList(String parentOrgId, zyzgqkVo zyzgqk){
        return analysisDao.findZyzgqkList(parentOrgId,zyzgqk);
    }
}
